import request from '@/utils/request'
///mes/base/workshop/listN 车间
export function selectWorkShop() {
  return request({
    url: '/mes/base/workshop/listN?workshopType=0',
    headers: {
      isToken: false
    },
    method: 'get',
    timeout: 20000
  })
}
///data/show/getWorkshopEquipment/{workShopId} 获取详情
export function getDatails(workShopId) {
  return request({
    url: '/data/show/getWorkshopEquipment/' + workShopId,
    headers: {
      isToken: false
    },

    method: 'get',
    timeout: 20000
  })
}

///data/show/getWorkshopEquipmentDetails/{equipmentId} 获取设备详情
export function getItemDatails(equipmentId) {
  return request({
    url: '/data/show/getWorkshopEquipmentDetails/' + equipmentId,
    headers: {
      isToken: false
    },

    method: 'get',
    timeout: 20000
  })
}


//获取详情fake
export function getDatailsFake(workShopId) {
  return request({
    url: '/data/show/getWorkshopEquipmentFake/' + workShopId,
    headers: {
      isToken: false
    },

    method: 'get',
    timeout: 20000
  })
}